package service.impl;

import DAO.UserDao;
import service.UserService;

public class UserServiceImpl implements UserService {

	private UserDao userDao;

	public UserServiceImpl(UserDao userDao) {
		System.out.println("UserServiceImpl的有参构造");
		this.userDao = userDao;
	}

	public UserServiceImpl() {
		System.out.println("UserServiceImpl的无参构造");
	};

	public void setUserDao(UserDao userDao) {
		System.out.println("UserServiceImpl的setUserDao方法");
		this.userDao = userDao;
	}

	@Override
	public void save() {
		userDao.save();
	}

}
